Skip to content

Handle the retired default model - #3

Open
srnafi wants to merge 1 commit into
Fast-Editor:mainfrom
srnafi:fix-zen-default-model
Open

srnafi wants to merge 1 commit into
Fast-Editor:mainfrom
srnafi:fix-zen-default-model

Conversation

@srnafi

@srnafi srnafi commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Zen dropped muse-spark-1.3-contributor-free from the free list. Any request that didn't name a model got 400 model_not_found, which is what most simple clients send.

Changes:

  • The default is now deepseek-v4.1-flash-free.
  • prepare_turn and list_models check the default against the live Zen list. If it's gone, they swap in another free model and log a warning instead of failing the request.

Explicit ids behave the same. A typo or a retired id sent explicitly still returns 400 with suggestions, since that's a caller mistake worth surfacing.

Tested with the release binary: default chat, streaming, image input, tool calls, a stale WRAP_MODEL, and an explicit bad id. 44 unit tests pass, clippy and fmt clean.

Zen no longer serves muse-spark-1.3-contributor-free, so any request
without a model field returned 400 model_not_found. The default is now
deepseek-v4.1-flash-free, which still handles tools and images.

prepare_turn and list_models resolve the default against the live Zen
catalogue, so a retired id gets swapped for another free model and logs
a warning instead of breaking every caller. Explicit model ids are
unchanged and unknown ones still return 400 with suggestions.

Version 0.4.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant